<template>
  <div id="app">
    <el-container>
      <el-header height="90px">
        <HeaderComponent />
      </el-header>
      <el-container>
        <el-aside width="200px" style="height: calc(100vh - 90px); overflow-y: auto;">
          <AsideComponent></AsideComponent>
        </el-aside>
        <el-main>
          <MainComponent />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import AsideComponent from '@/components/AsideComponent.vue';
import HeaderComponent from '@/components/HeaderComponent.vue';
import MainComponent from '@/components/MainComponent.vue';

export default {
  name: 'App',
  components: {
    AsideComponent,
    HeaderComponent,
    MainComponent
  }
}
</script>

<style>
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#app {
  height: 100vh;
  width: 100vw;
}


.el-container {
  height: 100%;
}

.el-header {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 80px;
}

.el-aside {
  background-color: #304156;
  color: #fff;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 200px;
}
</style>
